import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store/index";
import ElementPlus from "element-plus";
import * as ElementPlusIcons from "@element-plus/icons-vue"; //引入图标
import "element-plus/dist/index.css";
import "./styles/index.css";
import "@wangeditor/editor/dist/css/style.css";

const app = createApp(App);
app.use(router).use(store).use(ElementPlus).mount("#app");

Object.keys(ElementPlusIcons).forEach(key => {
	app.component(key, ElementPlusIcons[key]);
});
